﻿@{
    ViewBag.Title = "条码信息采集点";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<script>
    $(function () {
        initControl();
        gridList();
    });
    function initControl() {
        $('select').bindSelect();
    }
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            //url: "/SystemManage/User/GetGridJson",
            height: $(window).height() - 152,
            colModel: [
                { label: '采集终端编码', name: '', width: 120, align: 'center' },
                { label: '采集终端名称', name: '', width: 120, align: 'center' },
                { label: '采集终端描述', name: '', width: 120, align: 'center' },
                { label: '终端状态', name: '', width: 60, align: 'center' },
                 { label: '责任人员', name: '', width: 80, align: 'center' },               
                { label: '创建人员', name: '', width: 80, align: 'center' },
                { label: '创建日期', name: '', width: 80, align: 'center' },
                { label: '创建时间', name: '', width: 80, align: 'center' },
                { label: '更改人员', name: '', width: 80, align: 'center' },
                { label: '更改日期', name: '', width: 80, align: 'center' },
                { label: '更改时间', name: '', width: 80, align: 'center' }
            ],
            pager: "#gridPager",
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
        $("#btn_search").click(function () {
            $gridList.jqGrid('setGridParam', {
                postData: { keyword: $("#txt_keyword").val() },
            }).trigger('reloadGrid');
        });
    }
</script>
<div id="layout" style="height: 100%; width: 100%;">
    <form id="form1">
        <div style="padding: 12px 0 5px 0; padding-left: 15px; border-bottom: 1px solid #ccc;" class="line-table input-width-140">
            <div class="btn-group" style="margin-top:-9px;">
                采集终端编码<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                采集终端名称<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                采集终端描述<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                终端状态<br />
                <select id="" name="" class="form-control">
                    <option></option>
                    <option>0-禁用</option>
                    <option>1-冻结</option>
                    <option>2-运行</option>
                </select>
                &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                责任人员<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
            </div>
            

            <div class="btn-group" style="">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span> 检索</a>
            </div>
            <div class="btn-group" style="float:right;">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span> 刷新</a>
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-download"></span> 导出</a>
            </div>
        </div>
    </form>

    <form id="form2">
        <div style="padding: 5px 0; padding-left:15px; margin-right: 30px;" class="line-table input-width-140">
            <label class="prefix">采集终端编码</label><input id="" name="" type="text" class="form-control required" /> &nbsp;
            <label class="prefix">采集终端名称</label><input id="" name="" type="text" class="form-control required" /> &nbsp;
            <label class="prefix">采集终端描述</label><input id="" name="" type="text" class="form-control required" /> &nbsp;
            <label class="prefix">终端状态</label><select id="" name="" class="form-control"></select> &nbsp;
            <label class="prefix">责任人员</label><input id="" name="" type="text" class="form-control input-width-80" /> &nbsp;
           
            


            <div class="btn-group" style="margin-top:-1px;">
                <a id="" class="btn btn-primary center-block btn-1" onclick=""><span class="glyphicon glyphicon-ok"></span> 输入</a>
            </div>
            &nbsp;&nbsp;&nbsp;
            <div class="btn-group" style="margin-top:-1px;">
                <a id="" class="btn btn-primary center-block btn-1" onclick=""><span class="glyphicon glyphicon-remove"></span> 取消</a>
            </div>
        </div>
    </form>
    <div style="">
        <table id="gridList"></table>
        <div id="gridPager"></div>
    </div>
</div>

